package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.SetmealDto;
import com.itheima.entity.Dish;
import com.itheima.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetMealService extends IService<Setmeal> {
    //保存套餐setmeal的基本信息和setmealDish的关联关系
    @Transactional
    void saveWithDish(SetmealDto setmealDto);

    //删除套餐setmeal的基本信息和setmealDish的关联关系
    @Transactional
    void removeWithDish(List<Long> ids);

    //回显
    @Transactional
    SetmealDto getByIdWithDishes(Long id);
//    修改
    @Transactional
    void updateWithDishes(SetmealDto setmealDto);

}
